package 反射6;

import java.sql.Date;

public class Student {
    private Integer sid;
    private String name;
    private String major;
    private String tel;
    private Date birthday;

    public Student() {
    }

    public Student(Integer sid, String name, String major, String tel, Date birthday) {
        this.sid = sid;
        this.name = name;
        this.major = major;
        this.tel = tel;
        this.birthday = birthday;
    }

    /**
     * 获取
     * @return sid
     */
    public Integer getSid() {
        return sid;
    }

    /**
     * 设置
     * @param sid
     */
    public void setSid(Integer sid) {
        this.sid = sid;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return major
     */
    public String getMajor() {
        return major;
    }

    /**
     * 设置
     * @param major
     */
    public void setMajor(String major) {
        this.major = major;
    }

    /**
     * 获取
     * @return tel
     */
    public String getTel() {
        return tel;
    }

    /**
     * 设置
     * @param tel
     */
    public void setTel(String tel) {
        this.tel = tel;
    }

    /**
     * 获取
     * @return birthday
     */
    public Date getBirthday() {
        return birthday;
    }

    /**
     * 设置
     * @param birthday
     */
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String toString() {
        return "Student{sid = " + sid + ", name = " + name + ", major = " + major + ", tel = " + tel + ", birthday = " + birthday + "}";
    }
}
